package com.boyicloud.exchangeconsole.commnon

import javafx.scene.control.Alert
import jfxtras.styles.jmetro.FlatAlert
import jfxtras.styles.jmetro.JMetro

object AlertUtil {

    fun show(type: Alert.AlertType, message: String) {
        val flatAlert = FlatAlert(type)
        flatAlert.contentText = message
        JMetro().scene = flatAlert.dialogPane.scene
        flatAlert.show()
    }
}